package gui.visu.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JWindow;

/**
 * @author Charles Perin
 * 29 mars 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 *
 */
public class ListenerJWindowCancelButton implements ActionListener{

	private JWindow parent;
	
	public ListenerJWindowCancelButton(JWindow parent){
		this.setParent(parent);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		parent.setVisible(false);
	}

	public void setParent(JWindow parent) {
		this.parent = parent;
	}

	public JWindow getParent() {
		return parent;
	}

}

